﻿@model Admin.Models.ApplicationUser

@{
    ViewBag.Title = "用户明细";
}


<div>
    <h4>用户信息</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>姓名：</dt><dd>@Html.DisplayFor(model => model.UserName)</dd>
    </dl>
    <dl class="dl-horizontal">
        <dt>邮箱：</dt>
        <dd>@Html.DisplayFor(model => model.Email)</dd>
    </dl>

</div>
<h4>用户组：</h4>
@if (ViewBag.RoleNames.Count == 0)
{
    <hr />
    <p>此用户没有对应角色.</p>
}

<table class="table">

    @foreach (var item in ViewBag.RoleNames)
    {
        <tr>
            <td>
                @item
            </td>
        </tr>
    }
</table>
<p>
    @Html.ActionLink("编辑", "Edit", new {id = Model.Id}) |
    @Html.ActionLink("返回列表", "Index")
</p>




